package com.clas.liu.myapplication.view.util;

import com.clas.liu.myapplication.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by liu on 2019/5/4.
 */

public class SomeResources {
    private static List<Integer> categoryDrawables;
    private static List<String> categorys;
    public static List<Integer> getCategoryDrawables(){
        if (categoryDrawables == null) {
            categoryDrawables = new ArrayList<>();
            categoryDrawables.add(R.drawable.shape_item_category0);
            categoryDrawables.add(R.drawable.shape_item_category1);
            categoryDrawables.add(R.drawable.shape_item_category2);
            categoryDrawables.add(R.drawable.shape_item_category3);
            categoryDrawables.add(R.drawable.shape_item_category4);
            categoryDrawables.add(R.drawable.shape_item_category5);
        }
        return categoryDrawables;
    }
    public static List<String> getCategorys(){
        if (categorys == null) {
            categorys = new ArrayList<>();
            categorys.add("闲置出售");
            categorys.add("失物招领");
            categorys.add("求助帮忙");
            categorys.add("寻人交友");
            categorys.add("校园吐槽");
            categorys.add("兼职广告");
        }
        return categorys;
    }
}
